Skip to content

feat(o11y): generate updated clients with LRO span creation#5629

Draft
haphungw wants to merge 36 commits intogoogleapis:mainfrom
haphungw:lro-regenerate
Draft

feat(o11y): generate updated clients with LRO span creation#5629
haphungw wants to merge 36 commits intogoogleapis:mainfrom
haphungw:lro-regenerate

Conversation

@haphungw
Copy link
Copy Markdown
Contributor

@haphungw haphungw commented May 8, 2026

sidekick was updated to create and enter a T2 span with the literal method name before calling the poller factories. This ensures that the span name conforms to the design spec (e.g., client::Workflows::create_workflow.Wait).

All new tracing code is gated behind the google_cloud_unstable_tracing flag.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.71%. Comparing base (44840ac) to head (6fdb25f).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5629      +/-   ##
==========================================
- Coverage   97.76%   97.71%   -0.05%     
==========================================
  Files         221      221              
  Lines       51115    51175      +60     
==========================================
+ Hits        49971    50007      +36     
- Misses       1144     1168      +24     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates generated code across multiple services to include tracing spans for long-running operation pollers and transitions to a more flexible poller initialization method. It also improves documentation examples for resource identifiers. Feedback identifies that the removal of specific link definitions in doc comments breaks existing references, suggesting a systematic generator issue. Additionally, it is recommended to use more robust tracing patterns like in_scope or .instrument instead of span.enter() to avoid potential issues in asynchronous contexts.

Comment thread src/generated/cloud/apigateway/v1/src/model.rs
Comment thread src/generated/api/apikeys/v2/src/builder.rs Outdated
@haphungw haphungw force-pushed the lro-regenerate branch 6 times, most recently from 6e64e76 to c381782 Compare May 8, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant